package com.example.b_308.myapplication.model;

import com.example.b_308.myapplication.comment.BaseModel;

/**
 * Created by xxtves on 2017/11/22.
 */

public class Staff extends BaseModel{
    public static final String USER_TAG ="user";
    String id;
    String name;
    String job;
    String phone;

    public Staff(){}

    public Staff(String json) {

        super(json);
    }

    public void setPhone(String phone) {
        put("phone",id);
        this.phone = phone;
    }

    public void setId(String id) {
        put("id",id);
        this.id = id;
    }

    public void setName(String name) {
        put("name",name);
        this.name = name;
    }

    public void setJob(String job) {
        put("job",job);
        this.job = job;
    }

    public String getId() {
        if(null == id){
            id = getStr("id");
        }
        return id;
    }

    public String getName() {
        if(null == name){
            name = getStr("name");
        }
        return name;
    }

    public String getJob() {
        if(null == job){
            job = getStr("job");
        }
        return job;
    }
    public String getPhone(){
        if(null == phone){
            phone = getStr("phone");
        }
        return phone;
    }
}
